package com.website.system.service;

import com.baomidou.mybatisplus.service.IService;
import com.website.system.model.Drug;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface DrugService extends IService<Drug> {
    //查询所有
    List<Drug> findAll(String name);
    //根据Id删除
    //int delById(Integer id);
    //添加
    int addDrug(Drug drug);
    //修改
    int updataDrug(Drug drug);
    //查看详情
    Drug getById(Integer id);
    //批量添加
    int addDrug(List<Drug> drug);
    List<Drug> exportDrug();
}

